<?php

return [

    /*
    |--------------------------------------------------------------------------
    | Authentication Defaults
    |--------------------------------------------------------------------------
    |
    | This option controls the default authentication "guard" and password
    | reset options for your application. You may change these defaults
    | as required, but they're a perfect start for most applications.
    此选项控制默认身份验证“guard”和密码|重置您的应用程序的选项。您可以更改这些默认值
    |根据需要，但它们是大多数应用程序的完美开端。
    |
    */

    'defaults' => [
        'guard' => 'admin',
        'passwords' => 'admin',
    ],

    /*
    |--------------------------------------------------------------------------
    | Authentication Guards
    |--------------------------------------------------------------------------
    |
    | Next, you may define every authentication guard for your application.
    | Of course, a great default configuration has been defined for you
    | here which uses session storage and the Eloquent user provider.
    |
    | All authentication drivers have a user provider. This defines how the
    | users are actually retrieved out of your database or other storage
    | mechanisms used by this application to persist your user's data.
    |
    | Supported: "session", "token"
    接下来，您可以为应用程序定义每个身份验证保护。
    |当然，为您定义了一个很棒的默认配置这里使用会话存储和Eloquent用户提供程序。 |
    |所有身份验证驱动程序都有用户提这定义了如何
    |用户实际上是从您的数据库或其他存储中检索出来的此应用程序用于保留用户数据的机制。 |
    |支持：“会话”，“令牌”
    |
    */

    'guards' => [
//        'web' => [
//            'driver' => 'session',
//            'provider' => 'users',
//        ],

		'admin' => [
			'driver' => 'session',
			'provider' => 'admins',
		],

        'api' => [
            'driver' => 'jwt',
            'provider' => 'users',
            'hash' => false,
        ],
    ],

    /*
    |--------------------------------------------------------------------------
    | User Providers
    |--------------------------------------------------------------------------
    |
    | All authentication drivers have a user provider. This defines how the
    | users are actually retrieved out of your database or other storage
    | mechanisms used by this application to persist your user's data.
    |
    | If you have multiple user tables or models you may configure multiple
    | sources which represent each model / table. These sources may then
    | be assigned to any extra authentication guards you have defined.
    |
    | Supported: "database", "eloquent"

    所有身份验证驱动程序都有用户提这定义了如何
    |用户实际上是从您的数据库或其他存储中检索出来的此应用程序用于保留用户数据的机制。
    | |如果您有多个用户表或模型，则可以配置多个|代表每个模型/表的来源。然后这些来源可以
    |被分配给您定义的任何额外的认证保护。 |
    |支持：“数据库”，“模型”
    |
    */

    'providers' => [
        'users' => [
			'driver' => 'eloquent',
			'model' => App\Models\User::class,
		],

		'admins' => [
			'driver' => 'eloquent',
			'model' => App\Models\Admin::class,
		],

        // 'users' => [
        //     'driver' => 'database',
        //     'table' => 'users',
        // ],
    ],

    /*
    |--------------------------------------------------------------------------
    | Resetting Passwords
    |--------------------------------------------------------------------------
    |
    | You may specify multiple password reset configurations if you have more
    | than one user table or model in the application and you want to have
    | separate password reset settings based on the specific user types.
    |
    | The expire time is the number of minutes that the reset token should be
    | considered valid. This security feature keeps tokens short-lived so
    | they have less time to be guessed. You may change this as needed.

    如果您有更多密码，可以指定多个密码重置配置
	|应用程序中有多个用户表或模型，并且您希望
	|根据特定用户类型单独设置密码重置。
	|过期时间是重置令牌应该达到的分钟数
	被认为有效。这个安全特性使令牌保持短暂，因此
	|他们被猜测的时间更少。您可以根据需要进行更改。
    |
    */

    'passwords' => [
        'users' => [
            'provider' => 'users',
            'table' => 'password_resets',
            'expire' => 60,
        ],
    ],

];
